package DB_Layer;
import Model_Layer.*;
import java.util.*;
/**
 * Interface to the DBProduct
 * @author Gruppe 5
 *
 */
public interface IFDBPro 
{
	// get all products
	public ArrayList<Product> getAllProducts(boolean retriveAssociation);
	// get one product having the name
	public Product findProduct(String name, boolean retriveAssociation);
	
	//insert a new product
	public int insertProduct(Product pro) throws Exception;
	//update information about a product
	public int updateProduct(Product pro);
	public Product searchProductID(int proID, boolean b);
	//Delete Product
	public int delete(Product pro);

}
